package com.example.jwtjava.exception;

/**
 * @Author 宋伟宁
 * @Date 2023/10/23
 * @Version 1.0
 **/
public class ServiceException extends RuntimeException{

    private String message;

    private Integer code;

    public ServiceException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public ServiceException(String message, String message1, Integer code) {
        super(message);
        this.message = message1;
        this.code = code;
    }

    public ServiceException(String message, Throwable cause, String message1, Integer code) {
        super(message, cause);
        this.message = message1;
        this.code = code;
    }

    public ServiceException(Throwable cause, String message, Integer code) {
        super(cause);
        this.message = message;
        this.code = code;
    }

    public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String message1, Integer code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.message = message1;
        this.code = code;
    }

    public ServiceException(String message) {
        this.message = message;
    }

    public ServiceException(String message, String message1) {
        super(message);
        this.message = message1;
    }

    public ServiceException(String message, Throwable cause, String message1) {
        super(message, cause);
        this.message = message1;
    }

    public ServiceException(Throwable cause, String message) {
        super(cause);
        this.message = message;
    }

    public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String message1) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.message = message1;
    }
}
